package com.su.test;

import java.util.Random;

/**
 * @author Li
 * @Date 2023/4/7 15:50
 */
public class RandomArray {
    public static void main(String[] args) {
        /**
         * 随机数填充数组
         */
        int[] b=new int[10];
        for (int i = 0; i < b.length ; i++) {
            Random random = new Random();
            b[i]=random.nextInt(10);
        }
        for (int i = 0; i <b.length ; i++) {
            System.out.print(b[i]+" ");
        }

    }
}
